package Deom4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-19
 * Time: 21:19
 */
public class Base {
    int a = 1;
    public Base() {
        System.out.println("父类的构造方法");
    }
}
class Derived extends Base {
    int b = 2;
    public Derived() {
        System.out.println("子类的构造方法");
    }

    public static void main(String[] args) {
        Derived derived = new Derived();
    }
}
